# This also imports the include function
from django.conf.urls.defaults import *
from settings import PATH
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^news/', include('news.urls')),
    (r'^forum/', include('forum.urls')),
    (r'^contact/', include('contact.urls')),
    (r'^filemanager/', include('filemanager.urls')),
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': PATH+'/media'}),
    (r'^admin/', include(admin.site.urls)),
    (r'^$', include('news.urls')),
    (r'^accounts/', include('registration.backends.default.urls')),
    (r'^files/(?P<path>.*)', 'django.views.static.serve', {'document_root': PATH+'/files'}),
)

